﻿using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;

namespace RxjhServer
{
	public partial class sendmsg : Form
	{
		private static string Usname = "";

		public sendmsg()
		{
			this.InitializeComponent();
			this.textBox1.Text = sendmsg.Usname;
		}

		public static void SetName(string n)
		{
			sendmsg.Usname = n;
		}

		private void button1_Click(object sender, EventArgs e)
		{
			if (this.textBox2.Text.Length < 2)
			{
				MessageBox.Show("发送内容不能为空");
				return;
			}
			Players players = World.检查玩家name(this.textBox1.Text);
			if (players != null)
			{
				players.系统提示(this.textBox2.Text, 10, "客服对你私语说");
			}
		}
	}
}
